package com.rabbit.activity;

import android.os.Bundle;
import android.support.v4.app.FragmentTransaction;
import android.view.LayoutInflater;

import com.rabbit.R;
import com.rabbit.base.BaseActivity;
import com.rabbit.fragment.MainFragment;

public class MainActivity extends BaseActivity {

    public final String TAG = "MainActivity";

    private MainFragment mMainFragment;
    
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
//        LayoutInflater inflater = LayoutInflater.from(this);
        setContentView(R.layout.main_view);
        mMainFragment = new MainFragment();
        FragmentTransaction transaction = getSupportFragmentManager().beginTransaction();
        transaction.add(R.id.main_content_layout, mMainFragment);
        transaction.commitAllowingStateLoss();
        
        
    }
    
    @Override
    protected void onResume() {
    	mMainFragment.selectTabFragment(MainFragment.TAG_LOCAL);
        super.onResume();
    }


}
